$OpenBSD: patch-Make_unix,v 1.4 2011/10/12 20:13:33 mpi Exp $
--- Make.unix.orig	Wed Aug 26 07:44:41 2009
+++ Make.unix	Sat Oct  8 12:49:18 2011
@@ -5,8 +5,8 @@
 AS=as
 RANLIB=ranlib
 X11=/usr/X11R6
-CC=gcc
-CFLAGS=-Wall -Wno-missing-braces -ggdb -I$(ROOT) -I$(ROOT)/include -I$(ROOT)/kern -c -I$(X11)/include -D_THREAD_SAFE $(PTHREAD) -O2
+CC?=gcc
+CFLAGS+=-Wall -Wno-missing-braces -ggdb -I$(ROOT) -I$(ROOT)/include -I$(ROOT)/kern -c -I$(X11)/include -D_THREAD_SAFE $(PTHREAD)
 O=o
 OS=posix
 GUI=x11
@@ -19,5 +19,5 @@
 all: default
 
 libmachdep.a:
-	arch=`uname -m|sed 's/i.86/386/;s/Power Macintosh/power/; s/x86_64/amd64/'`; \
+	arch=`arch -s|sed 's/i386/386/; s/powerpc/power/; s/sparc64/sun4u/; s/mips64el/mips/; s/mips64/mips/'`; \
 	(cd posix-$$arch &&  make)
